//
//  SISSHouseResourceModel.m
//  SISSAPP
//
//  Created by 优房网 on 2017/3/24.
//  Copyright © 2017年 优房网. All rights reserved.
//

#import "SISSHouseResourceModel.h"

@implementation SISSHouseResourceModel

// 用YYModel解析数据时,模型类嵌入模型、数组,需要实现此方法
+ (NSDictionary *)modelContainerPropertyGenericClass {
    
    return @{
             @"listTag" : [SISSHouseResourceTagModel class],
             @"lstOfFile": [SISSPropertyFileModel class]
             };
}

//返回一个 Dict，将 Model 属性名对映射到 JSON 的 Key。
+ (NSDictionary *)modelCustomPropertyMapper {
    return @{@"ID": @"id"};
}


- (void)setHouseImage:(NSArray *)houseImage {
    NSMutableArray *tempArr = [NSMutableArray arrayWithCapacity:houseImage.count];
    for (NSInteger i = 0; i < houseImage.count; i++) {
        [tempArr addObject:[NSString stringWithFormat:@"%@%@",BASE_IMAGE_URL,houseImage[i]]];
    }
    _houseImage = tempArr.copy;
}

@end
